-
Couldn't load subscription status.
- Fork 53
bump clap 3 -> 4 #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump clap 3 -> 4 #226
Conversation
$ cargo check --features clap/deprecated
warning: use of deprecated method `clap::Arg::<'help>::required_unless`: Replaced with `Arg::required_unless_present`
--> crox\src\main.rs:47:12
|
47 | #[clap(required_unless = "dir")]
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated method `clap::Arg::<'help>::required_unless`: Replaced with `Arg::required_unless_present`
--> crox\src\main.rs:47:12
|
47 | #[clap(required_unless = "dir")]
| ^^^^^^^^^^^^^^^
warning: use of deprecated associated function `clap::Parser::from_args`: `StructOpt::from_args` is replaced with `Parser::parse` (note the change in derives)
--> crox\src\main.rs:138:20
|
138 | let opt = Opt::from_args();
| ^^^^^^^^^
warning: use of deprecated associated function `clap::Parser::from_args`: `StructOpt::from_args` is replaced with `Parser::parse` (note the change in derives)
--> mmview\src\main.rs:17:20
|
17 | let opt = Opt::from_args();
| ^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated associated function `clap::Parser::from_args`: `StructOpt::from_args` is replaced with `Parser::parse` (note the change in derives)
--> stack_collapse\src\main.rs:15:20
|
15 | let opt = Opt::from_args();
| ^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated associated function `clap::Parser::from_args`: `StructOpt::from_args` is replaced with `Parser::parse` (note the change in derives)
--> mmedit\src\main.rs:64:20
|
64 | let opt = Opt::from_args();
| ^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: `crox` (bin "crox") generated 3 warnings
warning: `mmview` (bin "mmview") generated 1 warning
warning: `stack_collapse` (bin "stack_collapse") generated 1 warning
warning: `mmedit` (bin "mmedit") generated 1 warning
warning: use of deprecated associated function `clap::Parser::from_args`: `StructOpt::from_args` is replaced with `Parser::parse` (note the change in derives)
--> flamegraph\src\main.rs:16:20
|
16 | let opt = Opt::from_args();
| ^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: `flamegraph` (bin "flamegraph") generated 1 warning
warning: use of deprecated associated function `clap::Parser::from_args`: `StructOpt::from_args` is replaced with `Parser::parse` (note the change in derives)
--> summarize\src\main.rs:315:20
|
315 | let opt = Opt::from_args();
| ^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
$ cargo check --features clap/deprecated warning: use of deprecated function `<Opt as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]` --> crox\src\main.rs:47:7 | 47 | #[clap(required_unless_present = "dir")] | ^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated function `<Opt as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]` --> crox\src\main.rs:50:7 | 50 | #[clap(long = "dir")] | ^^^^ warning: use of deprecated function `<Opt as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]` --> crox\src\main.rs:53:7 | 53 | #[clap(long = "collapse-threads")] | ^^^^ warning: use of deprecated function `<Opt as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]` --> crox\src\main.rs:56:7 | 56 | #[clap(long = "minimum-duration")] | ^^^^ warning: use of deprecated function `<Opt as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]` --> mmview\src\main.rs:12:7 | 12 | #[clap(short = 't', long = "thread-id")] | ^^^^ | = note: `#[warn(deprecated)]` on by default warning: `crox` (bin "crox") generated 4 warnings warning: `mmview` (bin "mmview") generated 1 warning warning: use of deprecated function `<Opt as clap::Subcommand>::augment_subcommands::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]` --> mmedit\src\main.rs:15:7 | 15 | #[clap(name = "truncate")] | ^^^^ | = note: `#[warn(deprecated)]` on by default warning: `mmedit` (bin "mmedit") generated 1 warning warning: use of deprecated function `<DiffOpt as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]` --> summarize\src\main.rs:28:7 | 28 | #[clap(short = 'e', long = "exclude")] | ^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated function `<DiffOpt as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]` --> summarize\src\main.rs:31:7 | 31 | #[clap(long = "json")] | ^^^^ warning: use of deprecated function `<SummarizeOpt as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]` --> summarize\src\main.rs:40:7 | 40 | #[clap(long = "json")] | ^^^^ warning: use of deprecated function `<SummarizeOpt as clap::Args>::augment_args::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[arg(...)]` --> summarize\src\main.rs:44:7 | 44 | #[clap(short = 'p', long = "percent-above", default_value = "0.0")] | ^^^^ warning: use of deprecated function `<Opt as clap::Subcommand>::augment_subcommands::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]` --> summarize\src\main.rs:51:7 | 51 | #[clap(name = "aggregate")] | ^^^^ warning: use of deprecated function `<Opt as clap::Subcommand>::augment_subcommands::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]` --> summarize\src\main.rs:54:7 | 54 | #[clap(name = "diff")] | ^^^^ warning: use of deprecated function `<Opt as clap::Subcommand>::augment_subcommands::old_attribute`: Attribute `#[clap(...)]` has been deprecated in favor of `#[command(...)]` --> summarize\src\main.rs:58:7 | 58 | #[clap(name = "summarize")] | ^^^^
Can you elaborate? Do you mean the layout of the |
|
Yes, help changed and some colors, for example: to: TL\DR: |
|
Thanks for the diff, @klensy! Yes, a change there shouldn't be a problem. We don't guarantee that to have any kind of defined shape. |
|
Thanks for the PR, @klensy! |
Looks working. UI layout changed, but i guess this acceptable.